// 输入值 'a=1&b=2&c=3' 输出 {a:1, b:2, c:3}

function parseQueryString(str){
    const str1 = str.split('&');
    return str1.reduce((acc, cur) => {
        const [key, value] = cur.split('=');
        acc[key] = value;
        return acc;
    },{})

}


console.log(parseQueryString('a=1&b=2&c=3'))
